package ai.restosuite.infrastructure;

import java.util.Objects;

/**
 * 初始化参数
 *
 * @author yuhao.wang3
 */
public class InitOptions {

    /**
     * 主干分支名称
     */
    private String masterBranch;

    /**
     * 发布分支名称
     */
    private String releaseBranch;

    /**
     * 测试分支名称
     */
    private String testBranch;

    /**
     * 开发分支前缀
     */
    private String featurePrefix;

    /**
     * 修复分支前缀
     */
    private String hotfixPrefix;

    /**
     * 版本前缀
     */
    private String tagPrefix;


    /**
     * 钉钉Token
     */
    private String larkUrl;

    /**
     * 语言
     */
    private LanguageEnum language;

    public String getMasterBranch() {
        return masterBranch;
    }

    public void setMasterBranch(String masterBranch) {
        this.masterBranch = masterBranch;
    }

    public String getReleaseBranch() {
        return releaseBranch;
    }

    public void setReleaseBranch(String releaseBranch) {
        this.releaseBranch = releaseBranch;
    }

    public String getTestBranch() {
        return testBranch;
    }

    public void setTestBranch(String testBranch) {
        this.testBranch = testBranch;
    }

    public String getFeaturePrefix() {
        return featurePrefix;
    }

    public void setFeaturePrefix(String featurePrefix) {
        this.featurePrefix = featurePrefix;
    }

    public String getHotfixPrefix() {
        return hotfixPrefix;
    }

    public void setHotfixPrefix(String hotfixPrefix) {
        this.hotfixPrefix = hotfixPrefix;
    }

    public String getTagPrefix() {
        return tagPrefix;
    }

    public void setTagPrefix(String tagPrefix) {
        this.tagPrefix = tagPrefix;
    }


    public String getLarkUrl() {
        return larkUrl;
    }

    public void setLarkUrl(String larkUrl) {
        this.larkUrl = larkUrl;
    }

    public LanguageEnum getLanguage() {
        return Objects.isNull(language) ? LanguageEnum.CN : language;
    }

    public void setLanguage(LanguageEnum language) {
        this.language = language;
    }
}
